﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeChatParking.Core.Payment.Tonglian
{
    /// <summary>
    /// 公众号支付接口请求参数
    /// </summary>
    public class H5PayRequest
    {
        public string merchantNo { get; set; }
        public string payMethod { get; set; }
        public string orderNo { get; set; }
        public string amount { get; set; }
        public string subject { get; set; }
        public string desc { get; set; }
        public string notifyUrl { get; set; }
        public string openId { get; set; }
        public string randomStr { get; set; }
        public string signType { get; set; }
        public string sign { get; set; }

        public IDictionary<string, string> GetParameters()
        {
            Dictionary<string, string> parameters = new Dictionary<string, string>();
            parameters.Add("merchantNo", this.merchantNo);
            parameters.Add("payMethod", this.payMethod);
            parameters.Add("orderNo", this.orderNo);
            parameters.Add("amount", this.amount.ToString());
            parameters.Add("subject", this.subject);
            parameters.Add("desc", this.desc);
            parameters.Add("notifyUrl", this.notifyUrl);
            parameters.Add("openId", this.openId);
            parameters.Add("randomStr", this.randomStr);
            parameters.Add("signType", this.signType);
            return parameters;
        }
    }
}
